home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ AutoRun Lister CurUser.xpl < prev    next >
Text File  |  1998-08-17  |  2KB  |  60 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 3.1"
  2. "TYPE"="8"
  3. "COUNT"="2"
  4. "UIPATH"="System\Startup"
  5. "NAME"="AutoRun Programs (Current User)"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Show Info"
  8. "TEXT 2"="Delete"
  9. "DESCRIPTION 1"="These programs are always started when you login."
  10. "DESCRIPTION 2"="Please note the difference: While all items in 'AutoRun Programs' are executed when the computer is started, the items listed here will only be started if YOU login."
  11. "DESCRIPTION 3"="Click "Show Info" to see the command that is executed or "Delete" to remove an item."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  15. "COMMENT 2"="Copy from <XQ AutoRun Lister.xpl>!"
  16.  
  17.  
  18. '*** DO NOT MODIFY *** 
  19. '*** SEE COMMENT ABOVE ***
  20. sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Run\"
  21. Sub Plugin_Initialize 
  22.  iCount=RegEnumValues(sP)
  23.  
  24.  if iCount>0 then
  25.  
  26.   for l=1 to iCount
  27.    sName=RegEnumElement(l)
  28.    Call SetUIElement(l,sName)
  29.   Next
  30.  
  31.  else
  32.   Call Disable
  33.  end if
  34. End Sub
  35.  
  36. Sub Plugin_CheckData(ElementIndex)
  37. End Sub
  38.  
  39. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  40.  if ElementSubIndex>0 then
  41.   s=sp & RegEnumElement(ElementSubIndex)
  42.  
  43.   if ElementIndex=1 then 
  44.    s=RegReadValue(s)
  45.    Call MsgInformation("Command: " & vbCrlF & vbCrlf & s)
  46.   else 'Delete
  47.    Call RegDeleteValue(s)
  48.    Call SetUIElement(ElementSubIndex,"")
  49.    Call Restart
  50.   end if
  51.  
  52.  end if
  53. End Sub
  54.  
  55. Sub Plugin_Terminate 
  56. End Sub
  57.  
  58.  
  59.  
  60.